<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<c:if test="${not empty goodses}">
	<div class="GoodsSearchWrap">
		<table class="grid" border="0" cellpadding="0" cellspacing="0" width="100%">
			<tbody>
				<c:forEach items="${goodses}" var="gd" varStatus="index">
					<c:if test="${index.index%4 == 0}">
						<tr valign="top">
					</c:if>
					<td width="25%;">
						<div class="items-gallery ">
							<div class="goodpic" style=" height: ${goodsImageParameter.smallPicHeight.data}px;">
								<a target="_blank" href="dp_goods_get.html?goodsId=${gd.goodsId}" style="width: ${goodsImageParameter.smallPicWidth.data}px; height: ${goodsImageParameter.smallPicHeight.data}px;"> 
								<img  width="${goodsImageParameter.smallPicWidth.data}" height="${goodsImageParameter.smallPicHeight.data}"   src="${gd.thumbnailPic}" /> </a>
							</div>
							<div class="goodinfo">
								<table class="entry-content" border="0" cellpadding="0" cellspacing="0" width="100%">
									<tbody>
										<tr>
											<td colspan="2">
												<h6>
													<a href="dp_goods_get.html?goodsId=${gd.goodsId}" title="${gd.name}" class="entry-title"> ${gd.name}</a>
												</h6>
											</td>
										</tr>
										<tr>
											<td colspan="2">
												<ul>
													<li>
														<span class="price1"><fmt:message key="common_currency" /> <fmt:formatNumber pattern="0.00" value="${gd.price}" /> </span>
													</li>
												</ul>
											</td>
										</tr>
										<tr>
											<td>
												<span class="mktprice1"> <fmt:message key="common_currency" /><fmt:formatNumber pattern="0.00" value="${gd.mktPrice}" /></span>
											</td>
											<td>
												<ul class="button">
													
													<li title="" class="star-off">
														<a href="member_favorite_goods_add.html?goodsId=${gd.goodsId}" class="listact"   rel="nofollow">加入收藏</a>
													</li>
													 
												</ul>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
					</td>
					<c:if test="${(index.index+1)%4 == 0 or index.last}">
						<c:if test="${(index.index+1)%4 != 0}">
							<td colspan="${4-(index.index+1)%4}">
								&nbsp;
							</td>
						</c:if>
						</tr>
					</c:if>
				</c:forEach>
			</tbody>
		</table>
	</div>
</c:if>